﻿using System;
using RPC;

namespace Playground {
	[RPCID(1234)]//The ID Of the message
	public class RPCDateTimeReply : RPCMessage {
		#region Fields
		private DateTime _date;
		#endregion
		#region Public
		public override void WriteData(RPCWriter w) {
			w.Write(this.Date);
		}
		public override void ReadData(RPCReader r) {
			this.Date = r.ReadDateTime();
		}
		#endregion
		#region Property
		public DateTime Date {
			get {
				return _date;
			}
			set {
				_date = value;
			}
		}
		#endregion
	}
}
